import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from './utils/request'
import './plugins/element.js'
import dataV from '@jiaminghi/data-view'
import '@/assets/css/reset.scss'
import '@/assets/css/iconfont.css'
import '@/assets/fonts/fonts.css'
import store from '@/store'
import wangeditor from 'wangeditor'
Vue.prototype.$wangeditor = wangeditor
import VueDraggableResizable from 'vue-draggable-resizable'

// optionally import default styles
import 'vue-draggable-resizable/dist/VueDraggableResizable.css'
import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
import htmlToPdf from './views/htmlToPdf' // 李传浩版本测试
import ContextMenu from 'vue-contextmenu'
Vue.use(ContextMenu)
console.log(window)
Vue.use(Viewer)
Viewer.setDefaults({
  // 需要配置的属性 注意属性并没有引号
  title: false,
  toolbar: true,
})

Vue.component('vue-draggable-resizable', VueDraggableResizable)
Vue.use(dataV)
Vue.use(htmlToPdf)
Vue.use(flButton)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app')
